import axios from 'poros/http';

// const BASE_API = 'http://10.110.96.81:8030';
const BASE_API = '';

// 失销原因搜索饼图接口
export const postLoseReasonReport = data =>
  axios({
    url: `${BASE_API}/api/salesforecast-service/lose/loseReasonReport`,
    method: 'post',
    data,
  });

  // 失销阶段搜索饼图接口
export const postLoseStageReport = data =>
axios({
  url: `${BASE_API}/api/salesforecast-service/lose/loseStageReport`,
  method: 'post',
  data,
});

// 销售管道柱状图接口
export const postSalesChannelReport = data =>
axios({
  url: `${BASE_API}/api/salesforecast-service/opportunity/salesChannelReport`,
  method: 'post',
  data,
});

// 销售漏斗图接口
export const postSalesFunnelReport = data =>
axios({
  url: `${BASE_API}/api/salesforecast-service/opportunity/salesFunnelReport`,
  method: 'post',
  data,
});

